//
//  ExploreTableViewCell.swift
//  Contract
//
//  Created by gaoyi on 2017/11/15.
//  Copyright © 2017年 gaoyi. All rights reserved.
//

import UIKit

class ExploreTableViewCell: UITableViewCell {

    @IBOutlet weak var img: UIImageView!
    @IBOutlet weak var name: UITextView!
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }
    var model: ExploreModel!{
        didSet{
            name.text = "\(model.name as String)"
            img.image = UIImage(named: model.img as String)
            
        }
    }
    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }
    
    class func createCell(tableView: UITableView) -> ExploreTableViewCell {

        let arr: NSArray = Bundle.main.loadNibNamed("Explore", owner: nil, options: nil) as! NSArray
        let cell: ExploreTableViewCell = arr.firstObject as! ExploreTableViewCell
        return cell
    }

    
}
